package com.demo10;

/**
 * Created by Administrator on 2017/4/14.
 */
public class ContinueTest {
    public static void main(String[] args) {
        for (int i = 1; i < 20; i++) {
            if (i % 2 == 0) {
                continue;
            }
            System.out.println(i);
        }
        String s1 = new String("hello");
        String s2 = new String("world!");
        String s = s1 + " " + s2;
        System.out.println(s);
        System.out.println("I like " +
                "Java");
        int booktime = 4;
        float practice = 2.5f;
        System.out.println("我每天花费" + booktime + "小时看书; " + practice + "小时上机练习");
        System.out.println("我每天花费" + booktime + "小时看书; " +(practice+booktime)+ "小时上机练习");
    }
}
